package com.wcx.application.service.Impl;

import com.wcx.application.domian.PositionBean;
import com.wcx.application.domian.SubindustriesBean;
import com.wcx.application.mapper.PositionMapper;
import com.wcx.application.mapper.SubindustriesMapper;
import com.wcx.application.service.PositionService;
import com.wcx.application.service.SubindustriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubindustriesServiceImpl implements SubindustriesService {
    @Autowired
    SubindustriesMapper subindustriesMapper;

    @Override
    public List<SubindustriesBean> getList() {
        return subindustriesMapper.getList();
    }

    @Override
    public int update(SubindustriesBean subindustriesBean) {
        return subindustriesMapper.update(subindustriesBean);
    }

    @Override
    public int delete(int id) {
        return subindustriesMapper.delete(id);
    }


    @Override
    public int create(SubindustriesBean subindustriesBean) {
        return subindustriesMapper.create(subindustriesBean);
    }

    @Override
    public List<SubindustriesBean> searchList(SubindustriesBean subindustriesBean) {
        return subindustriesMapper.searchList(subindustriesBean);
    }



}
